package cn.school.workflow.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import java.util.*;

public class StartCompeteistener implements TaskListener {
    private static final long serialVersionUID = -6099573941857056454L;

    @Override
    public void notify(DelegateTask delegateTask) {
        List<String> userList = Arrays.asList("test1","test2");
        Map<String,Object> map =new HashMap<>();
        map.put("assigneeList",userList);
        delegateTask.setVariable("assigneeList",userList);
    }
}
